public class Test08 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5};
        try{
            System.out.println(arr[10]);
        }
        catch(ArrayIndexOutOfBoundsException e){
            /*String message=e.getMessage();
            System.out.println(message);*/
           /* String str=e.toString();
            System.out.println(str);*/
            /*e.printStackTrace();*/
        }
    }
}
